/**
 * Sonatype Nexus (TM) Open Source Version
 * Copyright (c) 2008-present Sonatype, Inc.
 * All rights reserved. Includes the third-party code listed at http://links.sonatype.com/products/nexus/oss/attributions.
 *
 * This program and the accompanying materials are made available under the terms of the Eclipse Public License Version 1.0,
 * which accompanies this distribution and is available at http://www.eclipse.org/legal/epl-v10.html.
 *
 * Sonatype Nexus (TM) Professional Version is available from Sonatype, Inc. "Sonatype" and "Sonatype Nexus" are trademarks
 * of Sonatype, Inc. Apache Maven is a trademark of the Apache Software Foundation. M2eclipse is a trademark of the
 * Eclipse Foundation. All other trademarks are the property of their respective owners.
 */
/**
 * @since 3.29
 */

@import '~@sonatype/react-shared-components/scss-shared/nx-container-helpers';

.nxrm-cleanup-policies {
  .nx-alert__content {
    @include container-vertical;
  }

  fieldset.criteria-fieldset.invalid > :nth-last-child(2).retain-n__group {
    margin-bottom: var(--nx-spacing-8x);
  }

  fieldset.criteria-fieldset > :last-child.retain-n__group {
    margin-bottom: var(--nx-spacing-8x);
  }

  .retain-n {
    &-criteria__alert {
      margin: 24px;
    }

    &__alert {
      margin-top: 0;
    }

    &__checkbox {
      .nx-checkbox__content {
        overflow: initial;
      }
    }

    &__group {
      margin-left: var(--nx-spacing-6x);
    }
  }
}

.nxrm-cleanup-policies-dry-run {
  .nx-h2 {
    margin-bottom: var(--nx-spacing-6x);
  }

  .nx-form-row {
    margin-bottom: 0;
  }

  .nx-form-select {
    margin-bottom: 0;
    margin-right: var(--nx-spacing-6x);
  }
}
